package common.vo;

import common.base.BaseVo;


public class CommonKeyValueVo extends BaseVo{
	
	private static final long serialVersionUID = 1L;
	private Long keyId;
	private String strValue;
	private Long[] keyIds;
	private String[] strValues;
	private Long[] delFlags;
	
	
	public Long getKeyId() {
		return keyId;
	}
	public void setKeyId(Long keyId) {
		this.keyId = keyId;
	}
	public String getStrValue() {
		return strValue;
	}
	public void setStrValue(String strValue) {
		this.strValue = strValue;
	}
	public Long[] getKeyIds() {
		return keyIds;
	}
	public void setKeyIds(String keyIds) {
		if(keyIds!=null){
			String[] ids = keyIds.split(",");
			this.keyIds = new Long[ids.length];
			for(int i=0;i<ids.length;i++){
				String tmp = ids[i].trim();
				if(!tmp.equals(""))
					this.keyIds[i] = Long.parseLong(tmp);
			}
		}
	}
	public String[] getStrValues() {
		return strValues;
	}
	public void setStrValues(String strValues) {
		if(strValues!=null)
			this.strValues = strValues.split(",");
	}
	public Long[] getDelFlags() {
		return delFlags;
	}
	public void setDelFlags(String delFlags) {
		if(delFlags!=null){
			String[] ids = delFlags.split(",");
			this.delFlags = new Long[ids.length];
			for(int i=0;i<ids.length;i++){
				String tmp = ids[i].trim();
				if(!tmp.equals(""))
					this.delFlags[i] = Long.parseLong(tmp);
			}
		}
	}
	
}
